﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PAP.Application.Core
{
    public interface ICommandHandler<TCommand>
        where TCommand : ICommand
    {
        void Handle(TCommand command);
    }

    public interface ICommandHandler<TCommand, TResponse>
        where TCommand : ICommand
        where TResponse : IResponse
    {
        TResponse Handle(TCommand command);
    }
}
